home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / FreshBar / Source / VisualInfo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-25  |  1.2 KB  |  48 lines

  1. //*************************************************************************//
  2. // Filename:    VisualInfo.cpp
  3. // Autor:       Christian Taulien of Strange Intelligence
  4. // Purpose:     definition of used classes
  5. // Creation:    24. März 1998
  6. //*************************************************************************//
  7.  
  8. #include "VisualInfo.h"
  9. #include "global.h"
  10.  
  11. #include <libraries/gadtools.h>
  12.  
  13. #include <clib/gadtools_protos.h>
  14.  
  15. //******************************************************************//
  16. //******************************************************************//
  17. //
  18. //  VisualInfoC
  19. //
  20. //******************************************************************//
  21. //******************************************************************//
  22. VisualInfoC::~VisualInfoC()
  23. /*S*/
  24. {
  25.   TRACE("Entry");
  26.   // wenn der VisualInfo-Member gültig ist.
  27.   if (m_iVisualInfo)
  28.   {
  29.     FreeVisualInfo(m_iVisualInfo);
  30.   } // if
  31. }
  32. /*E*/
  33. void VisualInfoC::initVisualInfo(struct Screen *arg_poScreen)
  34. /*S*/
  35. {
  36.   TRACE("Entry");
  37.   m_iVisualInfo = NULL;
  38.   // wenn screen-parameter gültig
  39.   if (arg_poScreen)
  40.   {
  41.     // hole visual info
  42.     m_iVisualInfo = GetVisualInfo(arg_poScreen, TAG_DONE);
  43.   } // if
  44. }
  45. /*E*/
  46.  
  47.  
  48.